import { Type } from 'class-transformer'
import { IsDate, IsNotEmpty } from 'class-validator'
import { ApiProperty } from '@nestjs/swagger'

export class UpdateStudentExpireDto {
  @ApiProperty({ description: '开始时间' })
  @Type(() => Date)
  @IsDate()
  @IsNotEmpty()
  startAt: Date

  @ApiProperty({ description: '结束时间' })
  @Type(() => Date)
  @IsDate()
  @IsNotEmpty()
  expireAt: Date
}